<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>地图服务器设置</title>
    <!-- jquery -->
    <script src="/thirdLib/jq/jquery-3.3.1.min.js"></script>
    <style>
        .map-item{
            align-content: center;
            height: 30px;
            margin-top: 10%;
            padding: 1em;
        }
        .map-input{
            height: 80%;
            border: #3388ff 1px solid;
        }
        .btn-submit{
            color: blue;
            border: #3388ff 1px solid;
        }
        .btn-group {
            align: center;
        }
    </style>
</head>
<body>
    <form method="post" id="mapSettig" align="center" action="/saveSetting">
        <div class="map-item">
            <label for="mapPath">瓦片地图路径: </label>
            <input class="map-input" id="mapPath" name="mapPath">
        </div>
        <div class="btn-group">
            <button type="submit" class="btn-submit">保存</button>
        </div>
    </form>
</body>
<script type="text/javascript">
    $.get("/getMapPath",function (result) {
        $("#mapPath").val(result);
    });
</script>
</html>